package com.key.service;

import com.key.common.R;
import com.key.common.dto.ReturnAssetsDTO;
import com.key.common.dto.ReturnDTO;
import com.key.common.vo.AssetsTVO;
import com.key.entity.Assets;
import com.key.entity.BorrowAssets;
import com.key.entity.ReturnAssets;
import org.apache.poi.hssf.usermodel.HSSFWorkbook;

import java.util.List;

/**
 * @author tc
 * @create 2023-02-20 10:08
 */
public interface ReturnAssetsService {
    /**
     * 依据借用的单号去归还
     * @param returnAssetsDTO
     * @return
     */
    R creatReturn(ReturnAssetsDTO returnAssetsDTO);

    //依据单号删除退库单
    R deleteReturnAssets(String returnNumbers);

    //依据数据修改
    R editReturnAssets(ReturnDTO returnDTO);

    //依据条件查询归还资产
    R findReturnAssets(ReturnDTO returnDTO);

    List<Assets> findAssetsByReturnAssets(ReturnAssets returnAssets);

    List<AssetsTVO> findAssetsTVOByReturnAssets(ReturnAssets returnAssets);

    //导出归还单的excel
    HSSFWorkbook getWorkBook();


}
